from django.contrib.auth.models import Group
from rest_framework import serializers

# 分组表序列化器
class GroupSerializer(serializers.ModelSerializer):

    class Meta:
        # 根据模型类生成序列化器字段
        model = Group
        # 指定那些字段生成
        fields = '__all__'